using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._TargetMarketing
{
    /// <summary>
    /// <para>Generate Customer Segmentation Profile</para>
    /// <para>Creates a segmentation profile with an existing customer layer.</para>
    /// <para>使用现有客户层创建分段配置文件。</para>
    /// </summary>    
    [DisplayName("Generate Customer Segmentation Profile")]
    public class GenerateCustomerProfile : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateCustomerProfile()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_customers_layer">
        /// <para>Customer Layer</para>
        /// <para>The input point feature class that represents existing customers.</para>
        /// <para>表示现有客户的输入点要素类。</para>
        /// </param>
        /// <param name="_in_segmentation_base">
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// </param>
        /// <param name="_out_profile">
        /// <para>Output Profile</para>
        /// <para>The name of the segmentation profile file to be created.</para>
        /// <para>要创建的分段配置文件的名称。</para>
        /// </param>
        public GenerateCustomerProfile(object _in_customers_layer, object _in_segmentation_base, object _out_profile)
        {
            this._in_customers_layer = _in_customers_layer;
            this._in_segmentation_base = _in_segmentation_base;
            this._out_profile = _out_profile;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Generate Customer Segmentation Profile";

        public override string CallName => "ba.GenerateCustomerProfile";

        public override List<string> AcceptEnvironments => ["baDataSource", "workspace"];

        public override object[] ParameterInfo => [_in_customers_layer, _in_segmentation_base, _out_profile, _in_volume_field];

        /// <summary>
        /// <para>Customer Layer</para>
        /// <para>The input point feature class that represents existing customers.</para>
        /// <para>表示现有客户的输入点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Customer Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_customers_layer { get; set; }


        /// <summary>
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segmentation Base")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_segmentation_base { get; set; }


        /// <summary>
        /// <para>Output Profile</para>
        /// <para>The name of the segmentation profile file to be created.</para>
        /// <para>要创建的分段配置文件的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Profile")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_profile { get; set; }


        /// <summary>
        /// <para>Volume Info Field</para>
        /// <para>The field containing volume information from which the profile can optionally be created. For example, you can create a profile using the sales for each customer.</para>
        /// <para>包含卷信息的字段，可以选择从中创建配置文件。例如，您可以使用每个客户的销售额创建用户档案。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Volume Info Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_volume_field { get; set; } = null;


        public GenerateCustomerProfile SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}